-- GENERATED SPELL FOR [Camp Winterhoof Brave] --


function spell0_24031(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24031', 559, 1)
end

function spell1_24031(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24031', 610, 1)
end

function Sorts_24031(pUnit, Event)
local choix_sorts_24031 = math.random(0, 1)
if choix_sorts_24031 == 0 then
pUnit:RegisterEvent('spell0_24031', 1, 1)
end
if choix_sorts_24031 == 1 then
pUnit:RegisterEvent('spell1_24031', 1, 1)
end
end

function mob24031_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24031', math.random(1500, 3000), 1)
end

function mob24031_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24031_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24031_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24031, 1, 'mob24031_Action')
RegisterUnitEvent(24031, 2, 'mob24031_Leave')
RegisterUnitEvent(24031, 3, 'mob24031_Kill')
RegisterUnitEvent(24031, 4, 'mob24031_Die')
